// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * Supplier
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "supplier", autoResultMap = true)
@Schema(title = "供应商")
public class Supplier implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 供应商简称
   */
  @TableField(value = "`supplier_name`")
  @Schema(title = "供应商简称")
  private String supplierName;

  /**
   * 供应商名称
   */
  @TableField(value = "`supplier_full_name`")
  @Schema(title = "供应商名称")
  private String supplierFullName;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 供应商代码
   */
  @TableField(value = "`supplier_code`")
  @Schema(title = "供应商代码")
  private String supplierCode;

  /**
   * 供应商等级
   */
  @TableField(value = "`level`")
  @Schema(title = "供应商等级")
  private String level;

  /**
   * 规模
   */
  @TableField(value = "`scale`")
  @Schema(title = "规模")
  private String scale;

  /**
   * 跟进人
   */
  @TableField(value = "`follow_up_person`")
  @Schema(title = "跟进人")
  private Long followUpPerson;

  /**
   * 联系人
   */
  @TableField(value = "`contacts`")
  @Schema(title = "联系人")
  private String contacts;

  /**
   * 联系人手机号
   */
  @TableField(value = "`contacts_phone`")
  @Schema(title = "联系人手机号")
  private String contactsPhone;

  /**
   * QQ/微信
   */
  @TableField(value = "`qq_wx`")
  @Schema(title = "QQ/微信")
  private String qqWx;

  /**
   * 邮箱
   */
  @TableField(value = "`email`")
  @Schema(title = "邮箱")
  private String email;

  /**
   * 采购合同模板
   */
  @TableField(value = "`contract_template`")
  @Schema(title = "采购合同模板")
  private String contractTemplate;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 结算类型
   */
  @TableField(value = "`settle_accounts_type`")
  @Schema(title = "结算类型")
  private String settleAccountsType;

  /**
   * 预付比例
   */
  @TableField(value = "`pay_advance`")
  @Schema(title = "预付比例")
  private java.math.BigDecimal payAdvance;

  /**
   * 结算描述
   */
  @TableField(value = "`settlement_describe`")
  @Schema(title = "结算描述")
  private String settlementDescribe;

  /**
   * 支付类型
   */
  @TableField(value = "`pay_type`")
  @Schema(title = "支付类型")
  private String payType;

  /**
   * 户名
   */
  @TableField(value = "`account_name`")
  @Schema(title = "户名")
  private String accountName;

  /**
   * 开户行
   */
  @TableField(value = "`account_bank`")
  @Schema(title = "开户行")
  private String accountBank;

  /**
   * 账号
   */
  @TableField(value = "`account`")
  @Schema(title = "账号")
  private String account;

  /**
   * 社会统一信用代码
   */
  @TableField(value = "`credit_code`")
  @Schema(title = "社会统一信用代码")
  private String creditCode;

  /**
   * 网址
   */
  @TableField(value = "`web_address`")
  @Schema(title = "网址")
  private String webAddress;

  /**
   * 省
   */
  @TableField(value = "`province`")
  @Schema(title = "省")
  private String province;

  /**
   * 市
   */
  @TableField(value = "`city`")
  @Schema(title = "市")
  private String city;

  /**
   * 地区
   */
  @TableField(value = "`region`")
  @Schema(title = "地区")
  private String region;

  /**
   * 状态
   */
  @TableField(value = "`status`")
  @Schema(title = "状态")
  private String status;

  /**
   * 关联仓库
   */
  @TableField(value = "`ware_house`")
  @JoinField(Warehouse.class)
  @Schema(title = "关联仓库")
  private Long wareHouse;

  /**
   * 结算方式
   */
  @TableField(value = "`settle_methods`")
  @Schema(title = "结算方式")
  private String settleMethods;

  /**
   * 创建时间
   */
  @TableField(value = "`create_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createDate;

  /**
   * 系统用户
   */
  @TableField(value = "`sys_user_id`")
  @JoinField(SysUser.class)
  @Schema(title = "系统用户")
  private Long sysUserId;
}
